package com.weipai.demo.enums;

public enum RetCode {

    SUCCESS("200", "成功"),

    UPDATESUCCESS("200", "修改成功"),

    UPDATEERROR("401", "修改失败"),

    SUBMITSUCCESS("200","提交成功"),

    DELETESUCCESS("200", "删除成功"),

    REQUEST_ERROR("500", "请求失败"),

    UPLOADPICTURE("401","请上传图片"),

    MESSAGE_NULL("500", "请写上详情信息"),

    PASSWORDERROR("500","密码错误"),

    NOT_DATA("401","暂无数据"),

    NOT_LOGIN("-1", "尚未登录"),
    LOGIN_FAIL("-2", "登录失败"),

    FEEDBACKNOTNULL("401", "意见不能为空"),
    COLD_ALL("401", "请输入完整的个人信息"),
    PASSWORD_NOT_SAME("500","密码不一致，请重新输入"),
    RESOURCES_ADD_FAIL("500","操作失败"),

    IMG_FORMAT("501", "上传图片格式暂不支持"),
    IMG_SIZE("502", "上传的文件不能超过5M"),
    IMG_ERROR("500", "服务器错误,上传图片失败"),
    NO_DATA("401", "暂无数据"),
    D_RESULT_FAIL_NAMEVAR("1111", "此用户名已注册，请直接登录");
    
    
    

    private String code;
    private String msg;

    RetCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
